-- GENERATED SPELL FOR [Iron Rune Sentinel] --


function spell0_24316(pUnit, Event) --@Rune Detonation,Self--
pUnit:FullCastSpellOnTarget(48416,pUnit)
pUnit:RegisterEvent('Sorts_24316', 4000, 1)
end

function Sorts_24316(pUnit, Event)
local choix_sorts_24316 = math.random(0, 0)
if choix_sorts_24316 == 0 then
pUnit:RegisterEvent('spell0_24316', 1, 1)
end
end

function mob24316_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24316', math.random(1500, 3000), 1)
end

function mob24316_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24316_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24316_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24316, 1, 'mob24316_Action')
RegisterUnitEvent(24316, 2, 'mob24316_Leave')
RegisterUnitEvent(24316, 3, 'mob24316_Kill')
RegisterUnitEvent(24316, 4, 'mob24316_Die')
